<template>
  <div id="app">
		<van-nav-bar
			:fixed="true"
			title="龙门客栈"
			left-text="返回"
			right-text="暂无"
			left-arrow
			@click-left="onClickLeft"
			@click-right="onClickRight"
		/>
    <router-view class="_padding"/>
  </div>
</template>

<script>
export default {
  name: 'App',
	methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      this.$toast('按钮');
    }
  }
}
</script>

<style scoped="scoped">
		#app {
			padding: 20px;
		}
		._padding {
			padding: 38px 0;
		}
</style>
